<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateForbidLeaseDatesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('forbid_lease_dates', function (Blueprint $table) {
            $table->id();
            $table->timestamp('need_start')->nullable()->comment('所需时间开始');
            $table->timestamp('need_end')->nullable()->comment('所需时间结束');
            $table->bigInteger('car_id')->default(0)->comment('车辆id');
            $table->tinyInteger('status')->default(0)->comment('类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('forbid_lease_dates');
    }
}
